package com.sf.fy.uav.common.enums;

import lombok.Getter;
/**
 * @author LTQ
 */
@Getter
public enum PopUpScreenStatusEnum {

    /**
     *
     */
    NOT_STARTED(0, "未开始"),
    ON_DISPLAY(1, "进行中"),
    ENDED(2, "已结束"),
    OFF(3, "已下架");


    private final Integer status;
    private final String name;


    PopUpScreenStatusEnum(Integer status, String name) {
        this.status = status;
        this.name = name;
    }
    public static String getName(Integer value) {
        for (PopUpScreenStatusEnum ele : values()) {
            if (ele.getStatus().equals(value)) {
                return ele.getName();
            }
        }
        return null;
    }

}
